package cn.gzjp.modules.logis.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 附近车辆数量Entity
 * @author zengcp
 * @version 2018-05-27
 */
public class LogisCarCount extends DataEntity<LogisCarCount> {
	
	private static final long serialVersionUID = 1L;
	private String province;		// 省
	private String city;		// 市
	private String area;		// 区
	private String address;		// 详细地址
	private int carCount;		// 车辆数
	private int maxCarCount;    //最大车辆数
	
	public LogisCarCount() {
		super();
	}

	public LogisCarCount(String id){
		super(id);
	}

	@Length(min=0, max=32, message="省长度必须介于 0 和 32 之间")
	@ExcelField(title="省", align=2, sort=1)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=64, message="市长度必须介于 0 和 64 之间")
	@ExcelField(title="市", align=2, sort=2)
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=64, message="区长度必须介于 0 和 64 之间")
	@ExcelField(title="区", align=2, sort=3)
	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	
	@Length(min=0, max=256, message="详细地址长度必须介于 0 和 256 之间")
	@ExcelField(title="详细地址", align=2, sort=4)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@ExcelField(title="车辆数", align=2, sort=5)
	public int getCarCount() {
		return carCount;
	}

	public void setCarCount(int carCount) {
		this.carCount = carCount;
	}

	public int getMaxCarCount() {
		return maxCarCount;
	}

	public void setMaxCarCount(int maxCarCount) {
		this.maxCarCount = maxCarCount;
	}
}